export default {
    gendanListMutation(state, tableList) {
        state.tableList = tableList
    },

    setIsEasySearch(state, val) {
        state.isEasySearch = val
    },
    setIsHighSearch(state, val) {
        state.isHighSearch = val
    },

    setHighSearch(state, payload) {
        let obj = state.highSearch
        obj.customer_id = payload.number
        obj.customer_name = payload.name
        obj.contact_name = payload.linkman
        obj.documentary_type = payload.method
        obj.documentary_status = payload.status
        obj.need_starttime = payload.nextDate[0] || ''
        obj.need_stoptime = payload.nextDate[1] || ''
        obj.already_starttime = payload.gendanDate[0] || ''
        obj.already_stoptime = payload.gendanDate[1] || ''
        obj.employee_name = payload.gendanPerson
        obj.documentary_remark = payload.a_s_remark
    }

    // // 设置页数
    // setPage(state, page) {
    //     state.page = page
    // },

    // // 设置每页总数
    // setLimit(state, limit) {
    //     state.limit = limit
    // }
}